package com.ssy.lingxi.order.model.vo.basic.response;

import com.ssy.lingxi.order.model.constant.OrderServiceContants;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 查询送货单-物料列表时返回的VO
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-15
 */
public class DeliveryOrderProductQueryVO implements Serializable {
    private static final long serialVersionUID = 8124239879541323291L;

    public DeliveryOrderProductQueryVO() {
    }

    public DeliveryOrderProductQueryVO(Long id, String skuId, String productName, String orderNo, LocalDateTime createTime, String spec, String category, String brand, String unit, BigDecimal purchaseCount, BigDecimal deliveryCount) {
        this.id = id;
        this.skuId = skuId;
        this.productName = productName;
        this.orderNo = orderNo;
        this.createTime = createTime.format(OrderServiceContants.DEFAULT_TIME_FORMATTER);
        this.spec = spec;
        this.category = category;
        this.brand = brand;
        this.unit = unit;
        this.purchaseCount = purchaseCount;
        this.deliveryCount = deliveryCount;
    }

    /**
     * 送货单详情id
     */
    private Long id;
    /**
     * 商品skuId/物料编号
     */
    private String skuId;

    /**
     * 订单记录id
     */
    private Long orderProductId;

    /**
     * 商品名称/物料名称
     */
    private String productName;
    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 下单时间
     */
    private String createTime;

    /**
     * 规格型号
     */
    private String spec;

    /**
     * 品类
     */
    private String category;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 单位
     */
    private String unit;

    /**
     * 采购数量
     */
    private BigDecimal purchaseCount;

    /**
     * 送货数量
     */
    private BigDecimal deliveryCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public Long getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(Long orderProductId) {
        this.orderProductId = orderProductId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getPurchaseCount() {
        return purchaseCount;
    }

    public void setPurchaseCount(BigDecimal purchaseCount) {
        this.purchaseCount = purchaseCount;
    }

    public BigDecimal getDeliveryCount() {
        return deliveryCount;
    }

    public void setDeliveryCount(BigDecimal deliveryCount) {
        this.deliveryCount = deliveryCount;
    }
}
